// 中间件就是一个 函数 有三个形参  request  response  next
const express = require('express');
const app = express();

const userRouter = require('./router/userRouter');

app.use(userRouter);
// //路由中间件
const orderRouter = require('./router/orderRouter');
app.use(orderRouter);

app.listen(8080,()=>{
    console.log('server run at 8080');
})